package com.feicheng.lanniao.controller.pc;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.feicheng.lanniao.entity.SysRegion;
import com.feicheng.lanniao.result.ResultInfo;
import com.feicheng.lanniao.service.ISysRegionService;

/**
 * <p>
 * 行政区字典表 前端控制器
 * </p>
 *
 * @author feichengTech
 * @since 2021-09-02
 */
@RestController
@RequestMapping("/lanniao-user/sys-region")
public class SysRegionPcController {
	@Autowired 
	private ISysRegionService iSysRegionService;

	/**
	 * 三级联动查询省市区
	 * @param parentId 父id
	 * @return 省市区对应的集合
	 */
	@GetMapping("/list")
	public ResultInfo getSysgionList(Integer parentId) {
		return iSysRegionService.getSysRegionList(parentId);
	}
}
